package com.bang.springcloud.controller;

import com.bang.framework.base.enums.ResultCode;
import com.bang.framework.base.response.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: HystrixController
 * @author: BANG
 * @Date: 2019/12/24 14:47
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
@RestController
public class HystrixController {

    @RequestMapping("/unservice")
    public Result returnRes() {
        return new Result().setCode(ResultCode.FAIL).setMessage("服务不可用");
    }
}
